@model IEnumerable<Vms.Web.Models.CONTENT_TXT>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create", new { }, new { @class = "btn" })
</p>
<table class="table table-bordered table-striped">
    <tr>
        <th></th>
        <th>
            Txt
        </th>
        <th>
            TxtFileName
        </th>
        <th>
            Txt_x
        </th>
        <th>
            Txt_y
        </th>
        <th>
            Txt_Width
        </th>
        <th>
            Txt_Height
        </th>
        <th>
            ShowSingleLine
        </th>
        <th>
            FontName
        </th>
        <th>
            FontSize
        </th>
        <th>
            Bold
        </th>
        <th>
            FontColor
        </th>
        <th>
            DisplayMode
        </th>
        <th>
            RunSpeed
        </th>
        <th>
            ShowTime
        </th>
        <th>
            CONTENT
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
        <td>
			@item.Txt
        </td>
        <td>
			@item.TxtFileName
        </td>
        <td>
			@item.Txt_x
        </td>
        <td>
			@item.Txt_y
        </td>
        <td>
			@item.Txt_Width
        </td>
        <td>
			@item.Txt_Height
        </td>
        <td>
			@item.ShowSingleLine
        </td>
        <td>
			@item.FontName
        </td>
        <td>
			@item.FontSize
        </td>
        <td>
			@item.Bold
        </td>
        <td>
			@item.FontColor
        </td>
        <td>
			@item.DisplayMode
        </td>
        <td>
			@item.RunSpeed
        </td>
        <td>
			@item.ShowTime
        </td>
        <td>
			@(item.CONTENT == null ? "None" : item.CONTENT.Name)
        </td>
    </tr>
}

</table>


